package com.wzcl.app.model.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class HomeMassageDto extends BaseDto {

    @ApiModelProperty(value = "(标题)键")
    private String title;

    @NotBlank(message = "内容不能为空")
    @ApiModelProperty(value = "内容")
    private String content;

    @NotBlank(message = "组别不能为空")
    @ApiModelProperty(value = "组别")
    private String groupName;

    @NotBlank(message = "类型不能为空")
    @ApiModelProperty(value = "类型")
    private String type;

    @NotNull(message = "排序不能为空")
    @ApiModelProperty(value = "排序")
    private Integer orderNo;

    @ApiModelProperty(value = "是否默认")
    private Boolean isDefault;

    @ApiModelProperty(value = "链接Url")
    private String linkUrl;
}
